#include "Renderer_PCH.h"
#include "IRenderer.h"

/*--------------------------------------------------------------------------*/\

IRenderer::IRenderer()
{

}

/*--------------------------------------------------------------------------*/

IRenderer::~IRenderer()
{

}

/*--------------------------------------------------------------------------*/

void IRenderer::CreateInstance()
{
	if (!g_Renderer)
	{
		g_Renderer = new CRenderer();
	}
}

/*--------------------------------------------------------------------------*/

void IRenderer::DestroyInstance()
{
	if (g_Renderer)
	{
		delete g_Renderer;
		g_Renderer = NULL;
	}
}

/*--------------------------------------------------------------------------*/